﻿@page
@using static Com.Pages.Linq.SelectMaryModel
@model Com.Pages.Linq.SelectMaryModel
@{
    Layout = null;
}

<h1>展开子列表结果</h1>
<ul>
    @foreach (string c in Model.courses)
    {
        <li>@c</li>
    }
</ul>

<h1>扁平化列表结果</h1>
<ul>
    @foreach (StudentCourses sc in Model.studentCourses)
    {
        <li>@sc.StudentName - @sc.CourseName</li>
    }
</ul>